package finance

import org.joda.time.*
import org.joda.time.contrib.hibernate.*

class FieldValue {
    String val
    DateTime added
    Instrument instrument
    Field field

    static constraints = {
      val(blank:false)
      added(blank:false)
      instrument(blank:false)
      field(blank:false)
    }

    static belongsTo = [Instrument, Field]

    String toString() {
      "${val} ${added}"
    }
}
